package com.lagou.order.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongProject: lagou-parent
 * @author: 胡恺恺
 * @createTime: 2021/1/31  9:15
 * @Description:
 */
@RestController
@RequestMapping("/config")
public class ConfigClientController {

    @Value("${mysql.user}")
    private String user;

    @Value("$${person.name}")
    private String name;

    @RequestMapping("/query")
    public String getRemoteConfig(){
        return user + name;
    }
}
